home *** CD-ROM | disk | FTP | other *** search
- global gMachineData
-
- on setSliderLoc
- updateStage()
- end
-
- on moveSlider thisSprite
- set vMinHz to 404
- set vMaxHz to 568
- set vVertPos to the locV of sprite thisSprite
- puppetSprite(thisSprite, 1)
- set vNewLocH to vMinHz
- repeat while the mouseDown
- set vPlotLoc to the mouseH
- case 1 of
- (vPlotLoc < vMinHz):
- set the loc of sprite thisSprite to point(vMinHz, vVertPos)
- set vNewLocH to vMinHz
- (vPlotLoc > vMaxHz):
- set the loc of sprite thisSprite to point(vMaxHz, vVertPos)
- set vNewLocH to vMaxHz
- otherwise:
- set the loc of sprite thisSprite to point(the mouseH, vVertPos)
- set vNewLocH to vPlotLoc
- end case
- updateStage()
- end repeat
- puppetSound("quickclick")
- set vDivDistance to 164.0 / 9
- set vDivNumber to integer(1.0 * (vNewLocH - 404) / vDivDistance)
- set snapPointH to integer(vDivNumber * vDivDistance) + 404
- set the loc of sprite thisSprite to point(snapPointH, vVertPos)
- scoreSlider(thisSprite, vDivNumber)
- end
-